import axios from "../../utils/axios";

export const axios_GetBanner = () => {
    const url = "http://121.89.205.189:3000/admin/banner/list";
    return axios.get(url)
}

export const axios_AddBanner = (alt,link) => {
    const url = "http://121.89.205.189:3000/admin/banner/add";
    return axios.post(url, {alt,link})
}

export const axios_DelBanner = (data) => {
    const url = "http://121.89.205.189:3000/admin/banner/delete";
    return axios.get(url, {params:data})
}

export const axios_UpdateBanner = (bannerid,flag) => {
    const url = "http://121.89.205.189:3000/admin/banner/updateFlag";
    return axios.post(url, {bannerid,flag})
}